package com.ddone.code.executor.service;

import com.ddone.code.executor.pojo.entity.ColumnMetaData;
import com.ddone.code.executor.pojo.entity.DataSourceConfig;
import com.ddone.code.executor.pojo.entity.ExecuteResult;
import com.ddone.code.executor.pojo.enums.ExecutorType;

import java.util.List;


/**
 * @author ddone
 * @date 2024/8/2-20:57
 */
public interface ExecutorService {
    ExecuteResult execute(String code, ExecutorType executeType);


    List<String> executorTableCompleter(DataSourceConfig dataSourceConfig,String schemaName);


    List<ColumnMetaData> tableColumnsCompleter(DataSourceConfig dataSourceConfig,String schemaName, String tableName);


    List<String> executorSchemaCompleter(DataSourceConfig dataSourceConfig);
}
